import request from "@/utils/request";

// 查询对外转账记录列表
export function listExternalTransferRecord(query) {
  return request({
    url: "/ecs/externalTransferRecord/list",
    method: "get",
    params: query,
  });
}

// 查询对外转账记录详细
export function getExternalTransferRecord(id) {
  return request({
    url: "/ecs/externalTransferRecord/" + id,
    method: "get",
  });
}

// 新增对外转账记录
export function addExternalTransferRecord(data) {
  return request({
    url: "/ecs/externalTransferRecord",
    method: "post",
    data: data,
  });
}

// 修改对外转账记录
export function updateExternalTransferRecord(data) {
  return request({
    url: "/ecs/externalTransferRecord",
    method: "put",
    data: data,
  });
}

// 删除对外转账记录
export function delExternalTransferRecord(id) {
  return request({
    url: "/ecs/externalTransferRecord/" + id,
    method: "delete",
  });
}

// 申请电子回单
export function getExternalTransferReceipt(id) {
  return request({
    url: "/ecs/externalTransferRecord/receipt/" + id,
    method: "post",
  });
}
